package com.novax.ex.activity.provider.api;

import com.novax.ex.activity.provider.api.model.UserActivityInfo;
import com.novax.ex.activity.provider.common.ServerName;
import com.novax.ex.common.results.ReturnResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Description: 活动用户条件
 *
 * @author shaw
 * @date 12/1/22 17:02
 */
@FeignClient(url = "${remote.spot-service.endpoint}", name = "ActivityInfoApi", contextId = "ActivityInfoApi")
public interface ActivityInfoApi {

    /**
     * Description: 查询vip等级 下级邀请数
     *
     * @param userId uid
     * @return com.novax.ex.common.results.ReturnResult<com.novax.ex.activity.provider.api.model.UserActivityInfo>
     * @author shaw
     * @date 12/5/22 2:16 PM
     */
    @GetMapping(value = "/v3/activity/info/{userId}")
    ReturnResult<UserActivityInfo> findInfo(@PathVariable("userId") Long userId);
}
